package com.gylang.print.html.emums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.HashSet;
import java.util.Set;

/**
 * @author gylang
 * data 2021/6/16
 */
@Getter
@AllArgsConstructor
public enum HtmlTag {

	/** html标签 */
	OL("ol", "列表", true),
	LI("li", "列表项", false),

	;
	public static Set<HtmlTag> COLLECTION_TAG = new HashSet<>();

	static {
		for (HtmlTag value : HtmlTag.values()) {
			if (value.collection) {
				COLLECTION_TAG.add(value);
			}
		}
	}

	private final String label;

	private final String remark;

	private final boolean collection;

}
